home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 12 July 1996
- // Author: s.w. ui workflow
- //
- // Description:
- // This file defines a wrapper function to connectWindow,
- // That allows two nodes to be added to the connect window
- // with a single command, instead of three.
- //
- ////////////////////////////////////////////////////////////////////////////////
- //
- //
- // Procedures for the menu and button interactions of the multiListerUI
- //
- //
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Procedure Name:
- // multiListerSetPrefsCmd
- //
- // Description:
- // Command to be used by all check boxes in script multiLister.mel.
- // This script assumes that it is looking for a lister as created by
- // the proc multiLister in the file multiLister.mel. Anything else is not
- // guaranteed to work.
- //
- // Input Arguments:
- // $nameRoot - name of the multilister to save
- //
- // Return Value:
- // None.
- //
- global proc connectWindowWith (string $fromNode, string $toNode)
- {
- connectWindow;
-
- int $leftToRight = 1;
-
- if(`optionVar -exists "connectWindowLeftToRight"` == 1) {
- $leftToRight = `optionVar -q "connectWindowLeftToRight"`;
- } else {
- optionVar -iv "connectWindowLeftToRight" $leftToRight;
- }
-
- if($leftToRight == 1) {
- connectWindowAddToLeft $fromNode;
- connectWindowAddToRight $toNode;
- } else {
- connectWindowAddToLeft $toNode;
- connectWindowAddToRight $fromNode;
- }
- }
-